<?php

use Illuminate\Support\Facades\Route;

Route::get('/show/{id}','App\Http\Controllers\IndexController@index');
Route::get('/r/{id}','App\Http\Controllers\IndexController@jump');
Route::get('/abav','App\Http\Controllers\IndexController@abav');

Route::any('/notify/mpay','App\Http\Controllers\NotifyController@pay');

Route::get('/', function () {
    return redirect('/admin');
});

Route::get('/test',function(){
    $arr=\App\Services\Wechat::pay();
    $url=$arr['mweb_url']??'';
    if($url){
        return redirect($url);
    }
    return '获取支付信息失败';
});
